package com.wanpinghui.wphlibrary.model.user.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by tg596 on 2018/2/3.
 */

public class CourseBean implements Parcelable {


    /**
     company_id (integer, optional): 公司id ,
     course_content (string, optional): 历程名称 ,
     course_date (string, optional): 历程时间 ,
     created_at (integer, optional): 创建时间 ,
     deleted_at (integer, optional): 删除时间 ,
     id (integer, optional): 主键 ,
     updated_at (integer, optional): 更新时间
     */

    private long company_id;
    private String course_content;
    private long course_date;
    private int created_at;
    private int deleted_at;
    private int id;
    private int updated_at;

    public CourseBean (){

    }

    protected CourseBean(Parcel in) {
        company_id = in.readLong();
        course_content = in.readString();
        course_date = in.readLong();
        created_at = in.readInt();
        deleted_at = in.readInt();
        id = in.readInt();
        updated_at = in.readInt();
    }

    public static final Creator<CourseBean> CREATOR = new Creator<CourseBean>() {
        @Override
        public CourseBean createFromParcel(Parcel in) {
            return new CourseBean(in);
        }

        @Override
        public CourseBean[] newArray(int size) {
            return new CourseBean[size];
        }
    };

    public long getCompany_id() {
        return company_id;
    }

    public void setCompany_id(long company_id) {
        this.company_id = company_id;
    }

    public String getCourse_content() {
        return course_content;
    }

    public void setCourse_content(String course_content) {
        this.course_content = course_content;
    }

    public long getCourse_date() {
        return course_date;
    }

    public void setCourse_date(long course_date) {
        this.course_date = course_date;
    }

    public int getCreated_at() {
        return created_at;
    }

    public void setCreated_at(int created_at) {
        this.created_at = created_at;
    }

    public int getDeleted_at() {
        return deleted_at;
    }

    public void setDeleted_at(int deleted_at) {
        this.deleted_at = deleted_at;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(int updated_at) {
        this.updated_at = updated_at;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(company_id);
        dest.writeString(course_content);
        dest.writeLong(course_date);
        dest.writeInt(created_at);
        dest.writeInt(deleted_at);
        dest.writeInt(id);
        dest.writeInt(updated_at);
    }
}
